[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
] {\dontleavehmode{\tfd ROSS SCHULMAN}\blank[medium] policy technologist } \startmarginblock \topic{CONTACT} \startlines 1234 Main St NW Washington, DC 20011 \stoplines \topic{LANGUAGES} \startlines English (Native Speaker) Spanish (Conversational) \stoplines \topic{TECH} \startlines Rust

[NTG-context] Re: \par and \startlines

2024-04-30 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: Wolfgang Schuster > Gesendet: Samstag, 27. April 2024 07:40 > An: Denis Maier > Cc: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Re: \par and \startlines > > Denis Maier schrieb am 26.04.2024 um 19:52: &

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Joel via ntg-context
ize as default value but now you have to pass \txx as value because by default \high already uses style=\tx. When you now combine the default \tx from \high and the \tx from the footnote you get the \txx size (which is used in the custom \high command). begin example \definehigh[fakenot

[NTG-context] Re: How to make superscript text match footnote mark formatting?

2024-04-27 Thread Wolfgang Schuster
om \high and the \tx from the footnote you get the \txx size (which is used in the custom \high command). begin example \definehigh[fakenotesymbol][style=\txx] \starttext \startlines test\footnote{\unknown} test\high{\tx 1} test\fakenotesymbol{1} \stoplines \stoptext e

[NTG-context] Re: \par and \startlines

2024-04-27 Thread Henning Hraban Ramm
Am 26.04.24 um 18:24 schrieb Wolfgang Schuster: BTW: ConTeXt has a module for poems which can be loaded with \usemodule[format]. Never heard of it. Version says “ancient” ;) https://source.contextgarden.net/tex/context/modules/mkiv/m-format.mkiv What’s the advantage of all this markup over

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
? Below is a different solution to your problem with works without \startlines because you already mark up each individual line in the poem which make it possible to add a linebreak in the output. With \blank options (samepage) you can avoid pagebreaks between stanzas. \startxmlsetups xml:test

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Henning Hraban Ramm
Am 26.04.24 um 19:52 schrieb Denis Maier via ntg-context: I see. But there's no command that could be used to simulate an empty line? Did you try \vskip{…}? Hraban ___ If your question is of interest to others as

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 19:52, Denis Maier via ntg-context wrote: >> Wolfgang Schuster hat am 26.04.2024 19:29 CEST geschrieben: >> The inbetween setting works because ConTeXt checks at the start of >> each line whether it's empty (in this case the value is used) or not. >> >> When you add a \par you just end

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
g here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines…\stoplines. I guess, there must be a command to do that, but \par seems to have no effec

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
denis.ma...@unibe.ch <mailto:denis.ma...@unibe.ch> wrote: Hi, I’m trying to typeset a poem from XML, but I can’t figure out how to make the inbetween key working here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines…\stoplines. I gu

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
etween key working here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines…\stoplines. I guess, there must be a command to do that, but \par seems to have no effec

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Wolfgang Schuster
ML, but I can’t figure out how to make the inbetween key working here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines…\stoplines. I guess, there must be a command to do that, but \par seems to have no effect here. How can this be done? H

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Denis Maier via ntg-context
m from XML, but I can’t figure out how to make the inbetween key working here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines…\stoplines. I guess, there must be a command

[NTG-context] Re: \par and \startlines

2024-04-26 Thread Pablo Rodriguez via ntg-context
On 4/26/24 15:33, denis.ma...@unibe.ch wrote: > Hi, > > I’m trying to typeset a poem from XML, but I can’t figure out how to > make the inbetween key working here. > > As the source is XML, I cannot just add an empty line to start a new > group of lines inside \startline

[NTG-context] \par and \startlines

2024-04-26 Thread denis.maier
Hi, I'm trying to typeset a poem from XML, but I can't figure out how to make the inbetween key working here. As the source is XML, I cannot just add an empty line to start a new group of lines inside \startlines...\stoplines. I guess, there must be a command to do that, but \par seems to have

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
indentedtext Command/ startitemgroup Command/ startlabeltext Command/ startlinenote Command/ startlines Command/ startmakeup Command/ startmathalignment Command/ startmathcases Command/ startmathmatrix Command/ startmixedcolumns Command/ startnarrower Command/ startnote Command/ startpagecolumns Command/ sta

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
additions to \numexpr (I checked and : is mentioned but ; is missing). \starttext \startlines \number\numexpr 5 + 2 \relax \number\numexpr 5 - 2 \relax \number\numexpr 5 * 2 \relax \number\numexpr 5 / 2 \relax \number\numexpr 5 : 2 \relax % new! \number\numexpr 5 ; 2 \relax % new! \stop

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
clusion] \setcharacterspacing[frenchpunctuation] \startlines Pour éditer un texte un peu complexe, avec plusieurs langues non-romanes utilisées occasionnellement, on peut faire appel à \ConTeXt. Ce choix paraît être judicieux : en effet, pour le mathématicien, rendre possible la présentation et l'édition p

[NTG-context] Re: Score sums and references

2023-12-13 Thread Jairo A. del Rio
Cool. It works once \startlines ... \stoplines is removed. Thank you very much! Jairo El mié, 13 dic 2023 a la(s) 3:40 a.m., Hans Hagen (j.ha...@xs4all.nl) escribió: > On 12/13/2023 4:05 AM, Jairo A. del Rio wrote: > > Hi, dear list. Is there a proper "ConTeXt way"

[NTG-context] Re: Score sums and references

2023-12-13 Thread Hans Hagen
integerdef\DSlmao=0 \starttext Sum: \datasetvariable{test-1}{1}{whatever} \startlines +1\advance\DSlmao\plusone +2\advance\DSlmao\plustwo +3\advance\DSlmao\plusthree +4\advance\DSlmao\plusfour \stoplines \normalexpanded{\setdataset[test-1][whatever=\the\DSlmao]}

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-10 Thread Hans Hagen via ntg-context
On 12/9/2023 4:33 PM, Aditya Mahajan wrote: On Sat, 9 Dec 2023, Wolfgang Schuster wrote: \starttext \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3}}: \m

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Aditya Mahajan
On Sat, 9 Dec 2023, Wolfgang Schuster wrote: > \starttext > > \startlines > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} > \type{\sfrac{1}{3}}: \m{\sfrac{1

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Fabrice Couvreur
, Henning Hraban Ramm a écrit : > Am 09.12.23 um 14:43 schrieb Wolfgang Schuster: > > anton.chig...@mail.com schrieb am 09.12.2023 um 14:15: > > \startlines > > \type{\frac{1}{3}}: \m{\frac{1}{3}} > > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > > \type{\xxfrac{1}{3}}: \

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Henning Hraban Ramm
Am 09.12.23 um 14:43 schrieb Wolfgang Schuster: anton.chig...@mail.com schrieb am 09.12.2023 um 14:15: \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3}}: \m

[NTG-context] Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster
with \setupinterlinespace or you use a different fraction command which uses smaller numbers or creates inline fractions. \starttext \startlines \type{\frac{1}{3}}: \m{\frac{1}{3}} \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} \type{\sfrac{1}{3

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Alex Leray
persize[A7] \setbreakpoints[compound] \starttext \startlines[style=mono] 1. Thisisthetruth:waste-not-want-not 2. Thisisthetruth:waste/not/want/not 3. Thisisthetruth:waste+not+want+not 4. Thisisthetruth:waste(not(want(not)) 5. Thisisthetruth(waste)not)want)not \stoplines \stoptext

[NTG-context] Re: breakpoints in verbatim text

2023-08-17 Thread Wolfgang Schuster
persize[A7] \setbreakpoints[compound] \starttext \startlines[style=mono] 1. Thisisthetruth:waste-not-want-not 2. Thisisthetruth:waste/not/want/not 3. Thisisthetruth:waste+not+want+not 4. Thisisthetruth:waste(not(want(not)) 5. Thisisthetruth(waste)not)want)not \stoplines \stoptext

[NTG-context] Font switching, default features, and a request

2023-08-13 Thread Hamid,Idris
Dear gang, Consider the following example: == \setupdirections[bidi=global,method=one] \startTEXpage[offset=1em,width=14in] \definedfont[almfixed*arabic] \switchtobodyfont[almfixed*arabic] \switchtobodyfont[almfixed] % \addff{arabic} \startbuffer[] \startlines الثَّعْلَبُ

[NTG-context] Re: Using

2023-08-05 Thread Alex Leray
Thanks Hans! Le 4/08/23 à 23:21, Hans Hagen a écrit : On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection

[NTG-context] Re: Using

2023-08-04 Thread Hans Hagen
On 8/4/2023 7:42 PM, Alex Leray wrote: Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem

[NTG-context] Using

2023-08-04 Thread Alex Leray
Hello, I'm trying to figure out why this is not working (whereas \startlines\stoplines works): ``` \definehead[poem][section] \setuphead[poem][beforesection={\starttyping}, aftersection={\stoptyping}] \starttext \startpoem[title={Glijden}][] Lorem ipsum dolor sit amet consectetur. \stoppoem

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-14 Thread Bruce Horrocks via ntg-context
\def\mycommand#=#=#=#=#:[#5]% > {\ifparameter#1\or(1:#1)\fi > \ifparameter#2\or(2:#2)\fi > \ifparameter#3\or(3:#3)\fi > \ifparameter#4\or(4:#4)\fi > \ifparameter#5\or[5:#5]\fi} > > \startbuffer > \mycommand{aa}{bb}{cc} > \mycommand{aa}{bb}{cc}{dd} > \mycom

Re: [NTG-context] \unit parser ignoring case, in some cases.

2023-03-14 Thread Hans Hagen via ntg-context
nt=bp, ] \registerunitshortcut [unit] [C=coulomb] \startlines 10 \unit {square meter per second} 10 \unit {square Meter per Second} 10 \unit {point} 10 \unit {Point} 10 \unit {basepoint} 10 \unit {Basepoint} 10 \unit {C} \stoplines \setupunit[unit][option=keep] \startlines 10 \unit {s

Re: [NTG-context] How to extend an existing macro to take optional parameters?

2023-03-13 Thread Hans Hagen via ntg-context
{aa}{bb}{cc} \mycommand{aa}{bb}{cc}{dd} \mycommand{aa}{bb}{cc}{dd}[ee] \stopbuffer \typebuffer \startlines \getbuffer \stoplines \stoptext I'm not saying that it's the best solution, you can add \protected in front of the \def if needed. Hans

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Pablo Rodriguez via ntg-context
On 3/8/23 16:24, Floris van Manen via ntg-context wrote: >> \startlines > > thanks! > and it saves a lot of extra typing as well Hi Floris, this might also do the trick: \starttext \startTEXpage[offset=10mm] een twee drie vier vijf zes zeven\\ een twee drie vier

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Floris van Manen via ntg-context
\startlines thanks! and it saves a lot of extra typing as well .F ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman

Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Hans Hagen via ntg-context
drie vier vijf zes zeven\\   een twee drie vier vijf zes zeven\\ \stopTEXpage \stoptext \starttext \startlines een twee drie vier vijf zes zeven een twee drie vier vijf zes zeven een twee drie vier vijf zes zeven een twee drie vier vijf zes zeven een twee drie vier vijf zes zeven een

Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context
1 A long line that wraps Town Postcode \stopbuffer \framed [align=flushleft,strut=no] {\startlines[before=,after=] \getbuffer[address] \stoplines} \scale [width=3cm] {\framed [align=flushleft,strut=no] {\startlines[before=,after=] \getbuffer[address] \stoplines

[NTG-context] Spacing issue with \digits in math mode

2022-10-04 Thread Gavin via ntg-context
igits {12,345.67e89}$ 51 \setdigitmode {5} \setdigitorder{1} $\digits {12,345.67e89}$ 61 \setdigitmode {6} \setdigitorder{1} $\digits {12,345.67e89}$ \stopbuffer \typebuffer This is typeset as: \startlines \getbuffer \stoplines In text, the \type{\digits} command works fine: \setdigitmo

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-30 Thread Denis Maier via ntg-context
Until now, I've used tabulate for these kind of sidebyside texts. Usually there are not poems, just regular paragraphs, but with poems I've realized that blanks seem not be supported in individual table cells. Denis \startbuffer[lines1] \startlines[inbetween={\blank}] this is a poem with one longer

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Denis Maier via ntg-context
I'll try that. But, iirc, these had some other drawbacks I'll > > check > if it works for my use case. > > > > Is there a way to have blanks in the tabulate? > > \startlines[inbetween={\dontleavehmode\crlf}] > ... > > Wolfgang > > __

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Denis Maier via ntg-context
oes not quite work as tabulate does not seem to allow blanks between > > the stanzas. See MWE below. Am I missing someting? Is there a better > > way to achieve this? > > How about columnsets or paragraphs? > > \definecolumnset[Zwei][n=2] > \startcolumnset[Zwei] >

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Wolfgang Schuster via ntg-context
Denis Maier via ntg-context schrieb am 27.08.2022 um 09:17: Thanks. I'll try that. But, iirc, these had some other drawbacks I'll check if it works for my use case. Is there a way to have blanks in the tabulate? \startlines[inbetween={\dontleavehmode\crlf}] ... Wolfgang

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Denis Maier via ntg-context
umnsets or paragraphs? \definecolumnset[Zwei][n=2] \startcolumnset[Zwei] \startlines Starlight, star bright, first star I see tonight; \stoplines \column \startlines I wish I may, I wish I might have the wish I wish tonight. \stoplines \stopcolumnset \defineparagraphs[Zwei][n=2] \setupparagraphs[Zwei][1][

Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-26 Thread Henning Hraban Ramm via ntg-context
below. Am I missing someting? Is there a better way to achieve this? How about columnsets or paragraphs? \definecolumnset[Zwei][n=2] \startcolumnset[Zwei] \startlines Starlight, star bright, first star I see tonight; \stoplines \column \startlines I wish I may, I wish I might have the wish I wish

[NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-26 Thread Denis Maier via ntg-context
to achieve this? Best, Denis %%% \startbuffer[lines] \startlines[after={\blank}] this is a poem with two stanzas \stoplines \stopbuffer \starttext With a blank between the stanzas: \getbuffer[lines] Without a blank between the stanzas: \starttabulate[|p|p|] \NC \getbuffer

Re: [NTG-context] font fallbacks

2022-08-01 Thread Denis Maier via ntg-context
➊ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE > 9 U+0FFFD � REPLACEMENT CHARACTER > stop missing characters > start missing characters: cambriai.ttf > 266 U+0276C ❬ MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT > 266 U+0276D ❭ MEDIUM RIGHT-POINTING ANGLE BRACKET ORN

Re: [NTG-context] font fallbacks

2022-08-01 Thread Henning Hraban Ramm via ntg-context
IT ONE    9  U+0FFFD  �  REPLACEMENT CHARACTER stop missing characters start missing characters: cambriai.ttf  266  U+0276C  ❬  MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT  266  U+0276D  ❭  MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT stop missing characters \stopbuffer \typebuffer[exampl

[NTG-context] font fallbacks

2022-07-30 Thread Henning Hraban Ramm via ntg-context
RIGHT-POINTING ANGLE BRACKET ORNAMENT stop missing characters \stopbuffer \typebuffer[example] \startlines \getbuffer[example] {\ss\getbuffer[example]} \stoplines \tex{abra}\arg{...} \type{kadabra} \type{~~~} \stoptext ""

[NTG-context] can't accent/fake characters in euler font

2022-05-19 Thread a badin via ntg-context
Hello all, typesetting accented characters in eulernova font does not seem possible to me. Is it really impossible? The other math fonts (stix/xits) do it. I'm using Context LMTX 2022.01.21 20:13 \starttext \switchtobodyfont[eulernova] \startlines euler: 1 - č 2 - \ccaron 3 - \v{c} \stoplines

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
counterone>\plusone > ,\space > \fi > \commalistelement} Thanks. > > but ... there's also: > > \startlines > \commalistsentence[aap,noot,mies] > \commalistsentence[aap,noot] > \commalistsentence[aap] > \commalistsentence[a,b,c] &g

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Hans Hagen via ntg-context
\zerocount \scratchcountertwo \commalistsize \processcommacommand[\whatever] {\advance\scratchcounterone\plusone \ifnum\scratchcounterone=\scratchcountertwo \space and\space \orelse\ifnum\scratchcounterone>\plusone ,\space \fi \commalistelement} but ... there's also: \startli

Re: [NTG-context] poetry \startlines and tab

2022-01-12 Thread Hans Hagen via ntg-context
On 1/12/2022 1:09 AM, jbf via ntg-context wrote: For poetry that has non-regular indentations, I simply \definelines[poem] and set that up the way I want, obviously, with \setuplines[poem]  e.g. [before={\blank \setupinterlinespace[line=2.5ex]},after={\blank},indenting=first]. And then, but

Re: [NTG-context] poetry \startlines and tab

2022-01-11 Thread jbf via ntg-context
, I needed to typeset some poetry and noticed that \startlines[space=on] Some line with tab % doesn't work, no spaces added Some line with spaces %work \stoplines Is there a way to make the "tab" render

Re: [NTG-context] poetry \startlines and tab

2022-01-11 Thread Hans Hagen via ntg-context
On 1/11/2022 3:01 AM, Youssef Cherem via ntg-context wrote: Hello, I needed to typeset some poetry and noticed that \startlines[space=on] Some line with tab % doesn't work, no spaces added Some line with spaces %work \stoplines Is there a way to make the "tab" render

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-11 Thread Hans Hagen via ntg-context
previous = current end, } \stopluacode \starttext \startlines cat: \mymacro{cat} cat: \mymacro{cat} mouse: \mymacro{mouse} mouse: \mymacro{mouse} cat: \mymacro{cat} \stoplines \stoptext keep in mind that what you do is global (probably what one wants here): \startlines cat:

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-10 Thread Aditya Mahajan via ntg-context
me") else context("Different!") end previous = current end, } \stopluacode \starttext \startlines cat: \mymacro{cat} cat: \mymacro{cat} mouse: \mymacro{mouse} mouse: \mymacro{mouse} cat: \mymacro{cat} \stoplines \stoptext Adity

[NTG-context] poetry \startlines and tab

2022-01-10 Thread Youssef Cherem via ntg-context
Hello, I needed to typeset some poetry and noticed that \startlines[space=on] Some line with tab % doesn't work, no spaces added Some line with spaces %work \stoplines Is there a way to make the "tab" render

Re: [NTG-context] How to let a macro check the previous value of #1 the last time the same macro was called?

2022-01-09 Thread Wolfgang Schuster via ntg-context
as last time \else it is different from last time \fi \let\previousmymacro\currentmymacro} \starttext \startlines cat: \mymacro{cat} cat: \mymacro{cat} mouse: \mymacro{mouse} mouse: \mymacro{mouse} cat: \mymacro{cat} \stoplines \stoptext Wolfgang

[NTG-context] zint doesn’t work in "lines"

2022-01-06 Thread Henning Hraban Ramm via ntg-context
Hi, while the zint module generally works well, I run into "TeX capacity exceeded" as soon as I try a barcode within \startlines ... \stoplines: \usemodule[zint] \starttext \startlines My homepage: \barcode[alternative=qr code,text={www.fiee.net},width=2.5cm] \stoplines \stopte

Re: [NTG-context] startlines with long lines that break and indent

2021-12-27 Thread juh via ntg-context
Rik, Wolfgang – thanks a lot. So simple. I wikified it. juh ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] startlines with long lines that break and indent

2021-12-26 Thread Wolfgang Schuster via ntg-context
[ before={\blank\startnarrow[default=left,left=1cm]}, after={\stopnarrow\blank}, indenting={yes,-1cm}] \showframe[text][text] \starttext before \startlines text \dorecurse{10}{ text} text \dorecurse{40}{ text} text \dorecurse{10}{ text} \stoplines after \stoptext Long version

Re: [NTG-context] startlines with long lines that break and indent

2021-12-26 Thread Rik Kabel via ntg-context
=,     inbetween={\blank[small]},     after=,    ]   \startlines   \setupindenting[-\Poemindent,yes]   \startparagraph},    after=\stopparagraph \stoplines,  ] \starttext

[NTG-context] startlines with long lines that break and indent

2021-12-26 Thread juh via ntg-context
Hi all, I am looking for a way to make startstoplines likes this: This is a long line that breaks, the second line, the third line. So if a line in the poem is too long it shall break and indent. TIA juh ___

Re: [NTG-context] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context
u want for example bold italic text you always have to use \bi even the current text is already bold because \it produces normal italic text. \em is a special case because it affects also italic text: \starttext \startlines \tf normal {\em emphasized} \sl slanted {\em emphasized} \it italic {

Re: [NTG-context] nil from TeX to Lua

2021-08-09 Thread Aditya Mahajan via ntg-context
context("Argument is nil") elseif str == "" then context("Argument is empty") else context("Argument is %s", str) end end \stopluacode \define[1]\Macro{\ctxlua{userdata.macro([=

[NTG-context] small lmtx update

2021-02-02 Thread Hans Hagen
Hi, In the perspective of fancyfying context I made an alternative rendering for missing glyphs (and in the process also made the visualization italic and bold aware which is of course feature creepifying). \replacemissingcharacters \startbuffer \startlines[before=,after

Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Wolfgang Schuster
tc. text \starttext \startlines $\mathtexttf{upright text}$ $\mathtextit{italic text}$ $\mathtextsl{slanted text}$ $\mathtextbf{bold text}$ $\mathtextbi{bolditalic text}$ $\mathtextbs{boldslanted text}$ \stoplines \startlines $\mathwordtf{upright word}$ $\mathwordit{italic word}$ $\mat

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Rik Kabel
\protected\def to keep always the current meaning of \foo when you print the content of \bar. \starttext \def\foo{foo} \edef\bar{\foo} \def\foo{bar} \startlines bar=\bar foo=\foo \stoplines \blank \protected\def\foo{foo} \edef\bar{\foo} \protected\def\foo{bar} \startlines bar=\bar foo=\foo

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Wolfgang Schuster
of \foo when you print the content of \bar. \starttext \def\foo{foo} \edef\bar{\foo} \def\foo{bar} \startlines bar=\bar foo=\foo \stoplines \blank \protected\def\foo{foo} \edef\bar{\foo} \protected\def\foo{bar} \startlines bar=\bar foo=\foo \stoplines \stoptext A problem in older TeX

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
y thanks for your reply, Hans. It is already wikified (https://wiki.contextgarden.net/Ligatures#Replacements). I wonder whether \replaceword could be extended to replace multiple words and also to remove them. \starttext \replaceword[whatever][this or][no] \replaceword[whatever][that][] \sta

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Hans Hagen
d?" (and so on). I would like to avoid having to code all combinations (of course, if this were already available). old stuff present for a long time ... probaly documented somewhere ... if not than you have to wikify it ... \starttext \replaceword[whatever][this][that] \replaceword[whatever][t

[NTG-context] new upload

2020-08-09 Thread Hans Hagen
Hi, I uploaded a new lmtx ... not much done due to the heat (entered reading mode instead) but ... apart from some work in progress ... we now have some basic bitwise operations (maybe we need some more). So far we have: \startlines \meaning\bitwiseset \meaning\bitwisenot \meaning\bitwisenil

Re: [NTG-context] Alphabet & color

2020-07-31 Thread Marcus Vinicius Mesquita
001] % x \definecolor[colorscheme:1:25][h=696966] % y \definecolor[colorscheme:1:26][h=7bb3ff] % z \definefontfeature [MyFeaturesA] [default] [goodies={colorfont},colorscheme=default] \definefont[MyFontA][SerifBold*MyFeaturesA] \starttext \setfontcolorscheme[1] \MyFontA \startlines aàáâãäå AÀÁÂ

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Wolfgang Schuster
\startframedtext[middle][frame=off,width=fit] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì crudele; e canterò di quel secondo regno dove l'umano spirito si purga e di salire al ciel diventa degno. \stoplines \stopframedtext \stoptext Wolfgang

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Hans Hagen
, verse no. 2, 3, 5, and 6). Is it possible to get what I ask for with ConTeXt? The most I managed to do is this: \starttext \setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Tommaso Gordini
t; > \setuplines[indenting=three] > > > Best wishes, > Taco > > > On 2 Jul 2020, at 15:01, Tommaso Gordini > wrote: > > > > \starttext > > > > \setupindenting[yes,1em] > > \setuplines[indenting=even] > > > > \startlines > >

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Wolfgang Schuster
to get what I ask for with ConTeXt? The most I managed to do is this: \starttext \setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì crudele; e canterò di quel secondo regno dove

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Taco Hoekwater
:01, Tommaso Gordini wrote: > > \starttext > > \setupindenting[yes,1em] > \setuplines[indenting=even] > > \startlines > Per correr miglior acque alza le vele > omai la navicella del mio ingegno, > che lascia dietro a sé mar sì crudele; > e canterò di quel sec

Re: [NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Hans Hagen
I managed to do is this: \starttext \setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì crudele; e canterò di quel secondo regno dove l'umano spirito si purga e di salire al ciel

[NTG-context] Typesetting poetry with particular indenting

2020-07-02 Thread Tommaso Gordini
\setupindenting[yes,1em] \setuplines[indenting=even] \startlines Per correr miglior acque alza le vele omai la navicella del mio ingegno, che lascia dietro a sé mar sì crudele; e canterò di quel secondo regno dove l'umano spirito si purga e di salire al ciel diventa degno. \stoplines \stoptext but that's

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
t=3mm, voffset=3mm]{% \externalfigure[logo][height=0.75\LHeight]} \setlayer[BG][ preset=leftbottom, hoffset=5mm, voffset=3mm]{% the context group} \starttext \startlines \Name{Hans Hägar} \Title{CEO · R \& D} %\page \stoplines %\Name{Wolf Schmidt} %\Title{0th Level Support} %\page[yes] %\Na

Re: [NTG-context] Macros which scan subscripts/superscripts in ConTeXt

2020-06-26 Thread Hans Hagen
is subscript {x^{\mathrm{foo}\doifsomething{#1}{,#1}}_{\mathrm{bar}\doifsomething{#2}{,#2}}} \starttext \startlines $\mymacro$ $\mymacro^{\mathrm{extrasup}}$ $\mymacro_{\mathrm{extrasub}}$ $\mymacro^{\mathrm{extrasup}}_{\mathrm{extrasub}}$ $\mymacro_{\mathrm{extrasub}}^{\mathrm{extrasup

Re: [NTG-context] Macros which scan subscripts/superscripts in ConTeXt

2020-06-25 Thread Aditya Mahajan
}\doifsomething{#2}{,#2}}} \starttext \startlines $\mymacro$ $\mymacro^{\mathrm{extrasup}}$ $\mymacro_{\mathrm{extrasub}}$ $\mymacro^{\mathrm{extrasup}}_{\mathrm{extrasub}}$ $\mymacro_{\mathrm{extrasub}}^{\mathrm{extrasup}}$ \stoplines \stoptext Aditya

[NTG-context] error running wiki example with labels

2020-06-24 Thread Jan-Erik Hägglöf
s > defining > unable to define 'IBMPlexSans-regular' as 'ibmplex-14pt-ss-tf-0--0' lua error > lua error on line 70 in file ./labels3.tex: function call [801]: ...-64/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:435: attempt to index a nil value (upvalue

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
[name] \starttext The values of the three dataset variables are: \startlines \datasetvariable{name}{hash1}{key} \datasetvariable{name}{hash2}{key} \datasetvariable{name}{hash3}{key} \stoplines Now we set the values. \setdataset[name][hash1][key=value1] \setdataset[name][hash2][key=value2

[NTG-context] sunny friday afternoon update

2020-05-08 Thread Hans Hagen
the spacing. One can use \mathopen etc to wrap such a character an dmake it behave different. There is a new mechanism to overload that property in a different way: \startlines $x\mathopen {!}+123+\mathclose {!}x$ $x\tomathopen ! +123+\tomathclose ! x$ $x\mathclose {!}+123+\mathopen {!}x$ $x

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Adam Reviczky
short expect a number between 1 and 7 and > result in a label for the requested day of the week but it's not meant > to be used in \currentdate. > > > Still using luatex and not luametatex. > > To get the short names with \currentdate you have to append ":mnem" to > th

Re: [NTG-context] Short weekday option for date command

2020-04-08 Thread Wolfgang Schuster
ywords. \starttext \startlines \date[d=7,m=4,y=2008][weekday,{,~},day,~,month,~,year] \date[d=7,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year] \date[d=8,m=4,y=2008][weekday,{,~},day,~,month,~,year] \date[d=8,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year] \stoplines

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-05 Thread Hans Hagen
On 3/5/2020 2:46 AM, Thangalin wrote: If it helps, here's why I thought it would work: https://wiki.contextgarden.net/Command/definefirstline The wiki page shows that the macro takes a style option. The style option links to: https://wiki.contextgarden.net/Style_Alternatives This page has a

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
If it helps, here's why I thought it would work: https://wiki.contextgarden.net/Command/definefirstline The wiki page shows that the macro takes a style option. The style option links to: https://wiki.contextgarden.net/Style_Alternatives This page has a list of predefined styles and describes

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Hans Hagen
][ alternative=word, style=PoemFirstWord, n=1, ] \definestartstop[poem][ before={\startlines \setfirstline[PoemFirstLine] \placeinitial}, after={\stoplines}, ] \setuplines[indenting=odd] \starttext \startpoem Some say the world will end in fire, Some say in ice. From what I've tasted

[NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
, n=1, ] \definestartstop[poem][ before={\startlines \setfirstline[PoemFirstLine] \placeinitial}, after={\stoplines}, ] \setuplines[indenting=odd] \starttext \startpoem Some say the world will end in fire, Some say in ice. From what I've tasted of desire I hold with those who favor fire

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
= true, width= 15, height = 2.1, depth= 0, ] ; lmt_registerglyph [ category = "symbols", unicode = "0x2015", code = "QuotationDash ;" ] ; \stopMPcalculation \definefontfeature[default][default][metapost=symbols] % \showg

Re: [NTG-context] Disappearing font feature

2019-12-22 Thread Hans Hagen
relax \char 226\relax \char 227\relax \char 228\relax \char 229\relax \char 257\relax \char 259\relax \char 261\relax \char 1072\relax \egroup \stopbuffer \starttext \startlines {\type{default } \JHair \getbuffer

Re: [NTG-context] poem as a sidefloat

2019-09-25 Thread Wolfgang Schuster
]   \startframedtext [frame=off,width=fit,offset=0.25ex]     \startlines [style=mono]     lichtung     manche meinen     lechts und rinks     kann man nicht     velwechsern.     werch ein illtum!     \wordright{ernst jandl}     \stoplines   \stopframedtext \stopplacefloat \dorecurse{2}{\samplefile

Re: [NTG-context] poem as a sidefloat

2019-09-25 Thread Henning Hraban Ramm
efloat[poem] \setupfloat[poem][ location=left, % doesn’t work width=0.33\textwidth, background=color,backgroundcolor=cyan, spaceafter=1em, % doesn’t work ] \setupcaption[poem][ location=none, number=no, ] \starttext \dorecurse{2}{\input knuth} \startplacefloat[poem][location=left,]% \f

[NTG-context] poem as a sidefloat

2019-09-25 Thread Henning Hraban Ramm
style=\tt, % background=color,backgroundcolor=yellow, %]{\vbox{% \startlines lichtung manche meinen lechts und rinks kann man nicht velwechsern. werch ein illtum! \wordright{ernst jandl} \stoplines %}} \stopplacefloat \dorecurse{2}{\input knuth} \stoptext Greetlings, Hraban --- https://www.fie

Re: [NTG-context] newlines in return Lua string

2019-06-15 Thread Aditya Mahajan
quot;\xmlatt{#1}{argument}")) context.stoplines() \stopluacode or \startlines \ctxlua{context(hvdm.myluacall("\xmlatt{#1}{argument}))} \stoplines Aditya ___ If your question is of interest to others as well, please add an

Re: [NTG-context] problem with \sym?

2019-02-04 Thread Wolfgang Schuster
etuplines[before={}, after={}] \startlines}, after={\stoplines}] \setupCList[2][n, broad, packed, joinedup, autointro] [itemalign=flushright, left={}, right={}, stopper={}, margin=0pc, ] \startcomponent[*] \startCList \sym{} Preface \sym{0.} Prolegomena %<——line 22 \stopCList \stopcomponent

  1   2   3   4   5   6   >